/*
package org.pearl.springbootsecurity.demo.filter;

import org.springframework.stereotype.Component;

import javax.servlet.*;
import javax.servlet.FilterConfig;
import java.io.IOException;

*/
/**
 * Created by TD on 2021/7/2
 *//*

@Component("myFilter")
public class MyFilter implements Filter {

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        System.out.println("init");
    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("doFilter start");
        filterChain.doFilter(servletRequest, servletResponse);
        System.out.println("doFilter end");
    }

    @Override
    public void destroy() {
        System.out.println("destroy");
    }
}
*/
